math/big.Float.mant (field)
164 uses
math/big (current package)
float.go#L71: mant nat
float.go#L219: return uint(len(x.mant))*_W - x.mant.trailingZeroBits()
float.go#L376: m := len(x.mant)
float.go#L381: if x.mant[m-1]&msb == 0 {
float.go#L382: return fmt.Sprintf("msb not set in last word %#x of %s", x.mant[m-1], x.Text('p', 0))
float.go#L411: m := uint32(len(z.mant)) // present mantissa length in words
float.go#L433: rbit := z.mant.bit(r) & 1 // rounding bit; be safe and ensure it's a single bit
float.go#L437: sbit = z.mant.sticky(r)
float.go#L444: copy(z.mant, z.mant[m-n:]) // move n last words to front
float.go#L445: z.mant = z.mant[:n]
float.go#L464: inc = rbit != 0 && (sbit != 0 || z.mant[0]&lsb != 0)
float.go#L482: if addVW(z.mant, z.mant, lsb) != 0 {
float.go#L491: shrVU(z.mant, z.mant, 1)
float.go#L494: z.mant[n-1] |= msb
float.go#L500: z.mant[0] &^= lsb - 1
float.go#L520: z.mant = z.mant.setUint64(x << uint(s))
float.go#L571: z.mant = z.mant.setUint64(1<<63 | math.Float64bits(fmant)<<11)
float.go#L614: z.mant = z.mant.set(x.abs)
float.go#L615: fnorm(z.mant)
float.go#L663: z.mant = z.mant.set(x.mant)
float.go#L687: z.mant = z.mant.set(x.mant)
float.go#L757: u := msb64(x.mant) >> (64 - uint32(x.exp))
float.go#L802: i := int64(msb64(x.mant) >> (64 - uint32(x.exp)))
float.go#L876: if p < 0 /* m <= 0.25 */ || p == 0 && x.mant.sticky(uint(len(x.mant))*_W-1) == 0 /* m == 0.5 */ {
float.go#L928: mant = msb32(r.mant) >> uint(fbits-p)
float.go#L932: mant = msb32(r.mant) >> ebits & (1<<mbits - 1) // cut off msb (implicit 1 bit)
float.go#L996: if p < 0 /* m <= 0.25 */ || p == 0 && x.mant.sticky(uint(len(x.mant))*_W-1) == 0 /* m == 0.5 */ {
float.go#L1048: mant = msb64(r.mant) >> uint(fbits-p)
float.go#L1052: mant = msb64(r.mant) >> ebits & (1<<mbits - 1) // cut off msb (implicit 1 bit)
float.go#L1101: allBits := uint(len(x.mant)) * _W
float.go#L1113: z.abs = z.abs.shl(x.mant, exp-allBits)
float.go#L1115: z.abs = z.abs.set(x.mant)
float.go#L1117: z.abs = z.abs.shr(x.mant, allBits-exp)
float.go#L1148: allBits := int32(len(x.mant)) * _W
float.go#L1153: z.a.abs = z.a.abs.shl(x.mant, uint(x.exp-allBits))
float.go#L1157: z.a.abs = z.a.abs.set(x.mant)
float.go#L1161: z.a.abs = z.a.abs.set(x.mant)
float.go#L1199: if len(x.mant) == 0 {
float.go#L1202: if len(y.mant) == 0 {
float.go#L1227: ex := int64(x.exp) - int64(len(x.mant))*_W
float.go#L1228: ey := int64(y.exp) - int64(len(y.mant))*_W
float.go#L1230: al := alias(z.mant, x.mant) || alias(z.mant, y.mant)
float.go#L1237: t := nat(nil).shl(y.mant, uint(ey-ex))
float.go#L1238: z.mant = z.mant.add(x.mant, t)
float.go#L1240: z.mant = z.mant.shl(y.mant, uint(ey-ex))
float.go#L1241: z.mant = z.mant.add(x.mant, z.mant)
float.go#L1245: z.mant = z.mant.add(x.mant, y.mant)
float.go#L1248: t := nat(nil).shl(x.mant, uint(ex-ey))
float.go#L1249: z.mant = z.mant.add(t, y.mant)
float.go#L1251: z.mant = z.mant.shl(x.mant, uint(ex-ey))
float.go#L1252: z.mant = z.mant.add(z.mant, y.mant)
float.go#L1258: z.setExpAndRound(ex+int64(len(z.mant))*_W-fnorm(z.mant), 0)
float.go#L1274: ex := int64(x.exp) - int64(len(x.mant))*_W
float.go#L1275: ey := int64(y.exp) - int64(len(y.mant))*_W
float.go#L1277: al := alias(z.mant, x.mant) || alias(z.mant, y.mant)
float.go#L1282: t := nat(nil).shl(y.mant, uint(ey-ex))
float.go#L1283: z.mant = t.sub(x.mant, t)
float.go#L1285: z.mant = z.mant.shl(y.mant, uint(ey-ex))
float.go#L1286: z.mant = z.mant.sub(x.mant, z.mant)
float.go#L1290: z.mant = z.mant.sub(x.mant, y.mant)
float.go#L1293: t := nat(nil).shl(x.mant, uint(ex-ey))
float.go#L1294: z.mant = t.sub(t, y.mant)
float.go#L1296: z.mant = z.mant.shl(x.mant, uint(ex-ey))
float.go#L1297: z.mant = z.mant.sub(z.mant, y.mant)
float.go#L1303: if len(z.mant) == 0 {
float.go#L1311: z.setExpAndRound(ex+int64(len(z.mant))*_W-fnorm(z.mant), 0)
float.go#L1330: z.mant = z.mant.sqr(x.mant)
float.go#L1332: z.mant = z.mant.mul(x.mant, y.mant)
float.go#L1334: z.setExpAndRound(e-fnorm(z.mant), 0)
float.go#L1351: xadj := x.mant
float.go#L1352: if d := n - len(x.mant) + len(y.mant); d > 0 {
float.go#L1354: xadj = make(nat, len(x.mant)+d)
float.go#L1355: copy(xadj[d:], x.mant)
float.go#L1363: d := len(xadj) - len(y.mant)
float.go#L1367: z.mant, r = z.mant.div(nil, xadj, y.mant)
float.go#L1368: e := int64(x.exp) - int64(y.exp) - int64(d-len(z.mant))*_W
float.go#L1379: z.setExpAndRound(e-fnorm(z.mant), sbit)
float.go#L1399: i := len(x.mant)
float.go#L1400: j := len(y.mant)
float.go#L1405: xm = x.mant[i]
float.go#L1409: ym = y.mant[j]
floatconv.go#L50: z.mant, b, fcount, err = z.mant.scan(r, base, true)
floatconv.go#L64: if len(z.mant) == 0 {
floatconv.go#L85: exp2 := int64(len(z.mant))*_W - fnorm(z.mant)
floatmarsh.go#L37: if len(x.mant) < n {
floatmarsh.go#L38: n = len(x.mant)
floatmarsh.go#L55: x.mant[len(x.mant)-n:].bytes(buf[10:]) // cut off unused trailing words
floatmarsh.go#L94: z.mant = z.mant.setBytes(buf[10:])
ftoa.go#L96: d.init(x.mant, int(x.exp)-x.mant.bitLen())
ftoa.go#L186: mant := nat(nil).set(x.mant)
ftoa.go#L329: m := x.mant
ftoa.go#L330: switch w := uint32(len(x.mant)) * _W; {
ftoa.go#L380: m := x.mant
ftoa.go#L381: switch w := uint(len(x.mant)) * _W; {
ftoa.go#L431: m := x.mant
sqrt.go#L128: z.mant = z.mant.make(int(prec2/_W) * 2)
 |
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |